php datetime object get unix timestamp

34

php datetime object get unix timestamp -

$date = new DateTime();
echo $date->getTimestamp();

Comments

Submit
0 Comments